<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mini-Google</title>
</head>
<?php
	/*guys when declaring parts of code as PHP 
	<?php and end it with ?>
	without php dreamweaver wont recognize it
	*/
	
	/*
	<?  ?> is just fine, adding php after <? is helpful
	when you code with multi-languages.
	*/
	echo 'Hello World<br />';
	echo 'Hi this is my first edit<br />';
	echo 'Hopefully more stuff to come<br />';
	echo '<br /> <br /> <br /> ';
	
	$val = 100;
	$val2 = 200;
	$sum = $val + $val2;
	echo "$val + $val2 = " . $sum . '<br />';
	
	echo "$val + $val2 = $sum <br />";
	// Different between " and '.
	echo '$val + $val2 = $sum <br />';
	
	//Simple function
	function simpleFun($arg0=100,$arg1,$arg2=3){
		echo $arg0+$arg1+$arg2;
	}
	//Over write first defult value; no input arg will use default value.
	simpleFun(1,2);

	echo '<br />';

	function funWithReturn($arg0=100,$arg1,$arg2=3){
		return $arg0+$arg1+$arg2;
	}
	echo funWithReturn(100,1);
?>
<body>
</body>
</html>